<template>
  <el-container class="main">
    <el-aside style="width:20%">
      <el-menu
        :default-active="loaction"
        class="menu"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        :router="true"
      >
        <el-menu-item index="/index">
          <i class="el-icon-location"></i>
          <span>分类管理</span>
        </el-menu-item>
        <el-menu-item index="/note">
          <i class="el-icon-menu"></i>
          <span slot="title">帖子管理</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-main>
      <slot name="default"></slot>
    </el-main>
  </el-container>
</template>

<script>
export default {
  props: ["loaction"]
};
</script>

<style lang="scss">
.main {
  min-height: 100vh;
}
.menu {
  height: 100%;
}
</style>
